package com.demo.juc.async;

import java.util.concurrent.ExecutionException;

public class TaskCallableMain {

    public static void main(String[] args) throws ExecutionException, InterruptedException {

        //线程启动
        TaskCallable<TaskResult> taskHandler = new TaskHandler();
        TaskExecutor taskExecutor = new TaskExecutor(taskHandler, "test task async");
        new Thread(taskExecutor).start();

    }
}
